* {
  transition: background-color 0.2s ease-in-out, margin 0.2s ease-in-out, opacity 0.2s ease-in-out,
    filter 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

html {
  text-size-adjust: 100% !important;
  touch-action: manipulation;
}

body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei',
    'Source Han Sans SC', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif;
  line-height: 1.75em;
  color: var(--main-text-color);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  body {
    width: 100% !important;
    padding-bottom: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */
    padding-bottom: env(safe-area-inset-bottom); /* 兼容 IOS>11.2 */
  }
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

p {
  margin: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;

  &:hover {
    color: var(--primary-color);
  }
}

img {
  height: auto;
  max-width: 100%;
}

iframe {
  display: block;
  width: 100%;
  height: 450px;
  margin: 1rem 0;
  overflow: hidden;
  clear: both;
  border: 0;
}

.container {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }
}

@media (min-width: 768px) {
  .container {
    width: calc(768px - 32px);
  }
}

@media (min-width: 992px) {
  .container {
    width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1140px;
  }
}

@media (min-width: 1360px) {
  .container {
    width: 1240px;
  }
}

.sticky {
  position: sticky;
  top: 1rem;
  margin-bottom: 1rem;
}

.loading {
  padding: 2rem 0 1rem;
  text-align: center;
}

.empty {
  width: 100%;
  height: 60px;
  font-size: 14px;
  line-height: 60px;
  color: var(--second-text-color);
  text-align: center;
}

.ant-back-top {
  bottom: 60px !important;
}

#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: var(--primary-color, #ff0064);
  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}
